package com.jiangjiang.eshop.finance.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiangjiang.eshop.finance.domain.PurchaseSettlementOrder;
import com.jiangjiang.eshop.finance.dto.PurchaseSettlementOrderDTO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @ClassName PurchaseSettlementOrderConvert
 * @Description TODO
 * @Author jhw
 * @Date 2021/9/16 0:08
 * @Version 1.0
 **/
@Mapper(componentModel = "spring")
public interface PurchaseSettlementOrderConvert {

    PurchaseSettlementOrder convertDTO2Entity(PurchaseSettlementOrderDTO order);

    Page<PurchaseSettlementOrderDTO> convertPage2DTO(Page<PurchaseSettlementOrder> selectPage);

    PurchaseSettlementOrderDTO convertEntity2DTO(PurchaseSettlementOrder entity);

    List<PurchaseSettlementOrderDTO> convert2DTOList(List<PurchaseSettlementOrder> list);
}
